<div class="zs-body" data-ng-init="formInit('gzaqbw', {
        keyField:'id',
        randomFields:['id'],
        orderObject:{id:0}
    }) && loadData('gzaqbw');setConHei();">
    <div class="zs-map-tool">
        <div class="location">
            <a href="javascript:;">首页</a>
            <i class="right-arr"></i>
            <a href="javascript:;">行政管理</a>
            <i class="right-arr"></i>
            <a href="javascript:;">安全保卫</a>
        </div>
        <div class="option">
            <input type="button" class="zs-btn orange" value="新建" 
                ng-click="addRow('gzaqbw') && openWindow('edit');"/>
            <input type="button" class="zs-btn orange" value="编辑" 
                ng-click="editRow('gzaqbw', gzaqbw.sRows[0]) && openWindow('edit')"/>
            <input type="button" class="zs-btn orange" value="删除 "
                ng-click="delEntitys('gzaqbw')"/>
        </div>
    </div>
    <div class="zs-content" style="position:unset">
        <div class="zs-nice-tab idTabs">
			<div class="tool item" style="margin-left:6px;">
            	<!--<span class="search-warpper">
                    <i class="icon"></i>
                    <input type="text" class="zs-input" placeholder="唯一编号" ng-model="gzaqbw.queryObject['id']"/>
                </span>
				<span class="search-warpper">
                    <ag-Datebox id='qi_djlsj'  showcurday='true'
                       		class="zs-input" style="width:175px;height: 28px"
                       		ng-model="gzaqbw.queryObject['djlsj']" >
				   	</ag-Datebox>
                </span>-->
            	<span class="search-warpper">
                    <i class="icon"></i>
                    <input type="text" class="zs-input" placeholder="值班人" ng-model="gzaqbw.queryObject['szbr']"/>
                </span>
            	<!--<span class="search-warpper">
                    <i class="icon"></i>
                    <input type="text" class="zs-input" placeholder="巡查范围" ng-model="gzaqbw.queryObject['sxcfw']"/>
                </span>
            	<span class="search-warpper">
                    <i class="icon"></i>
                    <input type="text" class="zs-input" placeholder="巡查时间段" ng-model="gzaqbw.queryObject['sxcsjd']"/>
                </span>
            	<span class="search-warpper">
                    <i class="icon"></i>
                    <input type="text" class="zs-input" placeholder="异常情况" ng-model="gzaqbw.queryObject['sycqk']"/>
                </span>-->
            </div>
            <div class="operation item">
                <a class="ope-1" ng-click="loadData('gzaqbw')"></a>
                <a class="ope-2"></a>
            </div>
            <div class="switch">
                
            </div>
        </div>
        <div class="date-container">
            <div id="zpgwd">
                <div class="zs-data-table">
                    <div class="container">
                        <table>
                            <thead>
                                <tr>
                                    <th>
                                        <input id="allCheckbox" type="checkbox"
                                            ng-click="selectAll('gzaqbw','allCheckbox');" />
                                    </th>
									<!--<th>唯一编号</th>-->
									<th>记录时间</th>
									<th>值班人</th>
									<th>巡查范围</th>
									<th>巡查时间段</th>
									<th>异常情况</th>
                                </tr>
                            </thead>
                            <tbody>
                                <tr ng-repeat="r in gzaqbw.datas">
                                    <td>
                                        <input type="checkbox"
                                            ng-click="selectRow('gzaqbw',r);"
                                            ng-model="r.selected" />
                                    </td>
									<!--  唯一编号 -->
            						<!--<td>
                                        <a ng-click="editRow('gzaqbw',r) && openWindow('edit');">
                                            <label ng-bind="r.id"></label>
                                        </a>
                                   </td>-->
									<!--  记录时间 -->
								   <td>
                                        <a ng-click="editRow('gzaqbw',r) && openWindow('edit');">
                                            <label ng-bind="r.djlsj | asDate | date:'yyyy-MM-dd'"></label>
                                        </a>
                                   </td>
									<!--  值班人 -->
            						<td>
                                        <a ng-click="editRow('gzaqbw',r) && openWindow('edit');">
                                            <label ng-bind="r.szbr"></label>
                                        </a>
                                   </td>
									<!--  巡查范围 -->
            						<td>
                                        <a ng-click="editRow('gzaqbw',r) && openWindow('edit');">
                                            <label ng-bind="r.sxcfw"></label>
                                        </a>
                                   </td>
									<!--  巡查时间段 -->
            						<td>
                                        <a ng-click="editRow('gzaqbw',r) && openWindow('edit');">
                                            <label ng-bind="r.sxcsjd"></label>
                                        </a>
                                   </td>
									<!--  异常情况 -->
            						<td>
                                        <a ng-click="editRow('gzaqbw',r) && openWindow('edit');">
                                            <label ng-bind="r.sycqk"></label>
                                        </a>
                                   </td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                </div>
                <div class="zs-pagination-box">
                    <ag-Page fn='gzaqbw'></ag-Page>
                </div>
            </div>
        </div>

        <div ag-Window id="edit" title="安全保卫编辑" width='560px' height='286px'>
            <div class="zs-form-tab ibox">
                <form name="form" novalidate>
                    <table width="100%">
                        <tbody>
          					<!--<tr>
                                <td class="text" width="20%">唯一编号</td>
                                <td class="left" width="30%">
                                	<input type="text" ng-model="gzaqbw.editRow.id" class="zs-input" />
                                </td>
                            </tr>-->
						   <tr>
                                <td class="text" width="20%">记录时间</td>
                                <td class="left" width="30%">
                                	<ag-Datebox id='fi_djlsj' showcurday='gzaqbw.editRow.FIELD_ISNEW'
		                        		class="zs-input" style="width:175px;height: 28px"
		                        		ng-model="gzaqbw.editRow.djlsj" >
							   		</ag-Datebox>
                                </td>
                            </tr>
          					<tr>
                                <td class="text" width="20%">值班人</td>
                                <td class="left" width="30%">
                                	<input type="text" ng-model="gzaqbw.editRow.szbr" class="zs-input" />
                                </td>
                            </tr>
          					<tr>
                                <td class="text" width="20%">巡查范围</td>
                                <td class="left" width="30%">
                                	<input type="text" ng-model="gzaqbw.editRow.sxcfw" class="zs-input" />
                                </td>
                            </tr>
          					<tr>
                                <td class="text" width="20%">巡查时间段</td>
                                <td class="left" width="30%">
                                	<input type="text" ng-model="gzaqbw.editRow.sxcsjd" class="zs-input" />
                                </td>
                            </tr>
          					<tr>
                                <td class="text" width="20%">异常情况</td>
                                <td class="left" width="30%">
                                	<input type="text" ng-model="gzaqbw.editRow.sycqk" class="zs-input" />
                                </td>
                            </tr>
                        </tbody>
                        <tfoot>
                            <tr>
                                <td colspan="4">
                                    <input type="button" name="ok" value="保存" class="zs-btn c-red"
                                        ng-click="formValidate(form) && save('gzaqbw', gzaqbw.editRow, saveCloseWindow)"/>
                                    <input type="button" name="ok" value="取消" class="zs-btn c-green" 
                                        ng-click="closeWindow('edit')" />
                                </td>
                            </tr>
                        </tfoot>
                    </table>
                </form>
            </div>
        </div>
    </div>
</div>